package test;

import java.util.ArrayList;

public class Subject {
	private String name;
	private double score;
	private ArrayList<Student> studentList;//选修此科目的学生
	
	public Subject(){
		
	}
	public Subject(String name, double score, ArrayList<Student> studentList) {
		this.name = name;
		this.score = score;
		this.studentList = studentList;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public double getScore() {
		return score;
	}
	public void setScore(double score) {
		this.score = score;
	}
	public ArrayList<Student> getStudentList() {
		return studentList;
	}
	public void setStudentList(ArrayList<Student> studentList) {
		this.studentList = studentList;
	}
	@Override
	public String toString() {
		return "Subject [name=" + name + ", score=" + score + ", studentList=" + studentList + "]";
	}
	

}
